package com.zuoye.zuoye2;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student>students= new ArrayList<>();
        students.add(new Student(123,"张三",20, "男",123456,"123qq.com"));
        students.add(new Student(131,"王三",19, "女",145672,"456qq.com"));
        students.add(new Student(146,"李四",18, "男",145678,"789qq.com"));
        for (int i = 0; i < students.size(); i++) {
        System.out.println(students.get(i).toString());
        }
    }
}
